package com.yxq.mdt.app.modules.classification.prestener;


import com.yxq.mdt.app.base.BasePresenter;
import com.yxq.mdt.app.modules.classification.bean.ClassificationBean;
import com.yxq.mdt.app.modules.classification.model.ClassificationModel;
import com.yxq.mdt.app.modules.market.bean.MallResponseBean;
import com.yxq.mdt.app.net.ApiModel;

public class ClassificationPresenter extends BasePresenter<IClassificationContract.View, ClassificationModel> implements IClassificationContract.Presenter {

    public ClassificationPresenter(IClassificationContract.View view, ClassificationModel model) {
        super(view, model);
    }

    @Override
    public void getClassificationList() {

        mBaseModel.getClassificationList(new ApiModel.CommonCallback<ClassificationBean>() {
            @Override
            public void onSuccess(ClassificationBean beanList) {
                mRootView.onLoadSuccess(beanList);
            }

            @Override
            public void onError(String errMsg) {
                mRootView.onLoadFailed(errMsg);
            }
        });
    }
}
